package shop;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

public class ProductMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int arg1) throws SQLException {
		return new Product(rs.getLong("id"), rs.getString("name"), rs.getDouble("price"));
	}

}
